# 为线程定义一个函数
import multiprocessing
import time


def print_name(thread_name):
    count = 0
    while count < 5:
        time.sleep(1)
        count += 1
        print(thread_name)


if __name__ == "__main__":
    process = multiprocessing.Process(target=print_name, args=("多进程",))
    process.start()
    process.join()
